﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProcessManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProcessManagement.ProcessParameterVMs
{
    public partial class ProcessParameterBatchVM : BaseBatchVM<ProcessParameter, ProcessParameter_BatchEdit>
    {
        public ProcessParameterBatchVM()
        {
            ListVM = new ProcessParameterListVM();
            LinkedVM = new ProcessParameter_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProcessParameter_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProcessParameter._Route")]
        public long? RouteId { get; set; }
        [Display(Name = "_Model._ProcessParameter._Op")]
        public long? OpId { get; set; }
        [Display(Name = "_Model._ProcessParameter._TagId")]
        public long? TagId { get; set; }
        [Display(Name = "_Model._ProcessParameter._TagName")]
        public string TagName { get; set; }
        [Display(Name = "_Model._ProcessParameter._SetValue")]
        public string SetValue { get; set; }
        [Display(Name = "_Model._ProcessParameter._Precision")]
        public int? Precision { get; set; }
        [Display(Name = "_Model._ProcessParameter._ParameterName")]
        public string ParameterName { get; set; }
        [Display(Name = "_Model._ProcessParameter._DataType")]
        public TagDataTypeEnum? DataType { get; set; }
        [Display(Name = "_Model._ProcessParameter._Active")]
        public bool? Active { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}